#ifndef _DETECTFINGER_H_
#define _DETECTFINGER_H_

#include "Common.h"
#include "LinkedList.h"

typedef struct argumentDataSet {
	IplImage* image;						//image	
	struct queue* unitQueue;				//return from thread
	struct areaCoordinate interestedArea;	//x1, y1, x2, y2
	struct coordinate point;				//center of region of interested area
	float rangeRate;						//proportion of circle
}argumentDataSet_t;

/* finger detectioning function */
void* detectFinger(void* argument);
/*
set argument to struct argumentDataSet_t* argumentsData
it contain image, queue,
*/
void setArguments(argumentDataSet_t* argumentsData,
				  IplImage* image,
				  queue_t* &unitQueue,
				  areaCoordinate_t interestedArea,
				  coordinate_t point,
				  float rangeRate);
#endif //_DETECTFINGER_H_
